package com.gtw.modules.sys.controller;

import com.gtw.common.utils.R;
import com.gtw.modules.entity.TbCapitalpool;
import com.gtw.modules.sys.service.TbCapitalpoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/** 分红资金池
 * Created by wuye on 2018/3/18.
 */
@RestController
@RequestMapping("/sys/capital")
public class SysTbCapitalpoolController extends AbstractController{

    @Autowired
    private TbCapitalpoolService tbCapitalpoolService;


    /**
     * 查询资金池
     * @return
     */
    @RequestMapping("/foundByAll")
    public R foundByAll(){
        List<TbCapitalpool> list = tbCapitalpoolService.queryByAll();
        return R.ok().put("data",list);
    }




}
